package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sggg.entity.SgHealthRecord;
import org.jeecg.modules.sggg.mapper.SgHealthRecordMapper;
import org.jeecg.modules.sggg.service.ISgHealthRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 体质监测表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Service
public class SgHealthRecordServiceImpl extends ServiceImpl<SgHealthRecordMapper, SgHealthRecord> implements ISgHealthRecordService {

    @Autowired
    private SgHealthRecordMapper healthRecordMapper;

    @Override
    public IPage<SgHealthRecord> queryList(Page<SgHealthRecord> page, String userId, SgHealthRecord sgHealthRecord, String roleCode, String orgCode) {
        return healthRecordMapper.queryList(page, userId, sgHealthRecord.getMemberName(), sgHealthRecord.getMemberPhone(),sgHealthRecord.getResponsibleAgencies(), sgHealthRecord.getIntervene(), roleCode, orgCode);
    }
}
